﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Incendios0_1.sms;

namespace Incendios0_1.user_managment
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Usermanagment : Window
    {
        public Usermanagment()
        {
            InitializeComponent();
        }

        private void add_user_Click(object sender, RoutedEventArgs e)
        {
            new Adduser().ShowDialog();
        }

        private void modify_user_Click(object sender, RoutedEventArgs e)
        {
            Tuple<Users, Contacts> user = new lookfor_user().Search();
            if (user != null)
            {
                new Adduser(user.Item1, user.Item2).ShowDialog();
            }
        }

        private void delete_user_Click_1(object sender, RoutedEventArgs e)
        {
            new Window1().ShowDialog();
        }

        private void cancel_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
